<?include("../../config/config.php");
$DM->loadClass("tracker","uagent");
// create and instance class
$object_uagent = new uagent();
$object_uagent->id_uagent = array_key_exists("id_uagent",$_POST)?$_POST["id_uagent"]:""; 
$object_uagent->txt_uagent = array_key_exists("txt_uagent",$_POST)?$_POST["txt_uagent"]:""; 
if ($object_uagent->save()){
	header("Location: uagent.list.php");
}else{
	exit("Erro ao salvar uagent");
}
?>
